package com.vodone.v1pin.detail.vo
{
	import mx.collections.ArrayCollection;
	
	[Bindable]
	public class SizeListVO
	{
		public function SizeListVO( obj:Object = null )
		{
			if( obj != null )
			{
				parseObj( obj );
			}
		}
		
		public var list:ArrayCollection;
		public var bieming:Object;
		
		private function parseObj( obj:Object ):void
		{
			if( obj.hasOwnProperty( "data" ))
			{
				var arr:Array = obj["data"] as Array;
				var temp:Array = [];
				if( arr )
				for( var i:int = 0 ; i < arr.length  ;i++)
				{
					var item:SizeItemVO = new SizeItemVO( arr[i] );
					temp.push( item );
				}
				list = new ArrayCollection( temp );
			}
			if( obj.hasOwnProperty( "aliasData" ))
			{
				bieming = obj["aliasData"][0];
			}
		}
	}
}